class Dog:
    def eat(self):
        print('狗吃骨头')
        
    def run():
        print("狗跑起来了")


# 函数
def someone_eat(someone):
    '''
    接收一个具备吃eat和run功能的对象
    '''
    someone.eat()
    
    someone.run()


dog = Dog()
someone_eat(dog)
